package scaladuct

import java.lang.reflect.Type

/**
 * <p>
 * Created by IntelliJ IDEA.
 * User: zslajchrt
 * Date: Sep 13, 2010
 * Time: 10:31:45 AM
 */


class DuplexLookupFunction(val first: LookupFunctions.LookupFunction,
                           val second: LookupFunctions.LookupFunction)
        extends LookupFunctions.LookupFunction {

  def apply(name: AnyRef): List[(Type, AnyRef *) => ConfigPage[_]] = {
    val firstResult = first(name)
    val secondResult = second(name)
    firstResult ::: secondResult
  }
}
